#include<string>
#include<memory>
using namespace std;
#include"HttpServer.hpp"
static void Usage(string proc)
{
   std::cout << "Usage:\n\t" << proc << " port" << std::endl;;
}
int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        Usage(argv[0]);
    }
    int port=atoi(argv[1]);
    shared_ptr<HttpServer> http_server(new HttpServer(port));
    http_server->InitServer();
    http_server->Loop();
    return 0;
}